package com.suibibk.springCloud.order.controller;

import com.suibibk.springCloud.order.openfeign.StockService;
import com.suibibk.springCloud.order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
public class OrderController {
    @Autowired
    OrderService orderService;
    @RequestMapping("/add")
    public String add(){
        String msg = orderService.add(1l);
        return "新增订单成功"+msg;
    }
}
